import request from '@/utils/request'
import { praseStrEmpty } from "@/utils/ruoyi";

//查询用工需求列表
export function getQualityPredictList(query) {
  return request({
    url: '/operation/need/getQualityPredictList',
    method: 'get',
    params: query
  })
}

export function viewTimeShift() {
  return request({
    url: '/operation/need/viewTimeShift',
    method: 'get'
  })
}

export function viewUserData() {
  return request({
    url: '/operation/need/viewUserData',
    method: 'get',
  })
}

export function addQualityPredict(data) {
  return request({
    url: '/operation/need/addQualityPredict',
    method: 'post',
    data: data
  })
}

export function deleteQualityPredict(qualityPredictId) {
  return request({
    url: '/operation/need/deleteQualityPredict/' + qualityPredictId,
    method: 'delete'
  })
}

export function auditQualityPredict(data) {
  return request({
    url: '/operation/need/auditQualityPredict',
    method: 'post',
    data: data
  })
}

/**
 * 详情
 * @param operationNeedId
 */
export function viewQualityPredict(qualityPredictId) {
  return request({
    url: '/operation/need/viewQualityPredict/' + qualityPredictId,
    method: 'get'
  })
}

/**
 * 编辑
 * @param data
 */
export function updateQualityPredict(data) {
  return request({
    url: '/operation/need/updateQualityPredict',
    method: 'post',
    data: data
  })
}

